
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.3 数据源分析 · 大数据 bigdata_mallanalyze_atguigu 课堂笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content=" 李振超">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-prism/prism-solarizedlight.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-change_girls/girls.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="styles/website.css">
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="14-xiang-mu-xu-qiu.html" />
    
    
    <link rel="prev" href="12-xiang-mu-zheng-ti-jia-gou.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.atguigu.com/" target="_blank" class="custom-link">联系我们</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        <li class="header">第 1 部分 电商分析系统介绍</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    第 1 章 项目简介
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="11-xiang-mu-zheng-ti-jie-shao.html">
            
                <a href="11-xiang-mu-zheng-ti-jie-shao.html">
            
                    
                    1.1 项目整体介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="12-xiang-mu-zheng-ti-jia-gou.html">
            
                <a href="12-xiang-mu-zheng-ti-jia-gou.html">
            
                    
                    1.2 项目整体架构
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.1.3" data-path="13-ye-wu-xu-qiu.html">
            
                <a href="13-ye-wu-xu-qiu.html">
            
                    
                    1.3 数据源分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="14-xiang-mu-xu-qiu.html">
            
                <a href="14-xiang-mu-xu-qiu.html">
            
                    
                    1.4 项目需求
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="chapter1.html">
            
                <a href="chapter1.html">
            
                    
                    第 2 章 预备知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="di-3-zhang-xiang-mu-da-jian.html">
            
                <a href="di-3-zhang-xiang-mu-da-jian.html">
            
                    
                    第 3 章 项目搭建
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="di-3-zhang-xiang-mu-da-jian/31-chuang-jian-fu-gong-cheng.html">
            
                <a href="di-3-zhang-xiang-mu-da-jian/31-chuang-jian-fu-gong-cheng.html">
            
                    
                    3.1 创建父工程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="di-3-zhang-xiang-mu-da-jian/32-chuang-jian-gong-zuo-zi-mo-kuai.html">
            
                <a href="di-3-zhang-xiang-mu-da-jian/32-chuang-jian-gong-zuo-zi-mo-kuai.html">
            
                    
                    3.2 创建通用子模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="di-3-zhang-xiang-mu-da-jian/33-chuang-jian-mo-ni-shu-ju-zi-mo-kuai.html">
            
                <a href="di-3-zhang-xiang-mu-da-jian/33-chuang-jian-mo-ni-shu-ju-zi-mo-kuai.html">
            
                    
                    3.3 创建模拟数据子模块
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">第 2 部分 电商分析系统需求实现</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-4-zhang-xu-qiu-1.html">
            
                <a href="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-4-zhang-xu-qiu-1.html">
            
                    
                    第 4 章 需求1: Top10 热门品类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-5-zhang-xu-qiu-2-top10-remen-pin-lei-zhong-de-top10-session-tong-ji.html">
            
                <a href="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-5-zhang-xu-qiu-2-top10-remen-pin-lei-zhong-de-top10-session-tong-ji.html">
            
                    
                    第 5 章 需求2: Top10热门品类中的 Top10 活跃 Session 统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-6-zhang-xu-qiu-3-dan-ye-mian-tiao-zhuan-lv.html">
            
                <a href="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-6-zhang-xu-qiu-3-dan-ye-mian-tiao-zhuan-lv.html">
            
                    
                    第 6 章 需求3: 页面单条转化率统计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-7-zhang-xu-qiu-4-ge-qu-yu-re-men-shang-pin-top3.html">
            
                <a href="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-7-zhang-xu-qiu-4-ge-qu-yu-re-men-shang-pin-top3.html">
            
                    
                    第 7 章 需求4: 各区域热门商品 Top3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji.html">
            
                <a href="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji.html">
            
                    
                    第 8 章 需求5:  广告黑名单实时统计
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji/81-li-xian-xiang-mu-yu-bei-zhi-shi.html">
            
                <a href="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji/81-li-xian-xiang-mu-yu-bei-zhi-shi.html">
            
                    
                    8.1 离线项目预备知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji/81-shi-shi-huan-jing-da-jian.html">
            
                <a href="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji/81-shi-shi-huan-jing-da-jian.html">
            
                    
                    8.2 实时环境搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.3" data-path="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji/82-xu-qiu-5-guang-gao-hei-ming-dan-shi-shi-tong-ji.html">
            
                <a href="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-8-zhang-guang-gao-dian-ji-liang-shi-shi-tong-ji/82-xu-qiu-5-guang-gao-hei-ming-dan-shi-shi-tong-ji.html">
            
                    
                    8.3 需求5: 广告黑名单实时统计
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-9-zhang-xu-qiu-6-guang-gao-dian-ji-liang-shi-shi-tong-ji.html">
            
                <a href="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-9-zhang-xu-qiu-6-guang-gao-dian-ji-liang-shi-shi-tong-ji.html">
            
                    
                    第 9 章 需求6: 广告点击量实时统计 
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-10-zhang-xu-qiu-7-mei-tian-mei-di-qu-re-men-guang-gao-top3.html">
            
                <a href="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-10-zhang-xu-qiu-7-mei-tian-mei-di-qu-re-men-guang-gao-top3.html">
            
                    
                    第 10 章 需求7: 每天每地区 热门广告 Top3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-11-zhang-xin-zeng-xu-6c423a-zui-jin-1-xiao-shi-guang-gao-dian-ji-liang-shi-shi-tong-ji.html">
            
                <a href="di-2-bu-fen-dian-shang-fen-xi-xi-tong-xu-qiu-shi-xian/di-11-zhang-xin-zeng-xu-6c423a-zui-jin-1-xiao-shi-guang-gao-dian-ji-liang-shi-shi-tong-ji.html">
            
                    
                    第 11 章 新增需求: 最近 1 小时广告点击量实时统计
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >1.3 数据源分析</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="13-&#x6570;&#x636E;&#x6E90;&#x5206;&#x6790;">1.3 &#x6570;&#x636E;&#x6E90;&#x5206;&#x6790;</h1>
<h2 id="131-&#x6574;&#x4F53;&#x4E1A;&#x52A1;&#x9700;&#x6C42;">1.3.1 &#x6574;&#x4F53;&#x4E1A;&#x52A1;&#x9700;&#x6C42;</h2>
<p>&#x672C;&#x9879;&#x76EE;&#x5206;&#x4E3A;<my>&#x79BB;&#x7EBF;&#x5206;&#x6790;&#x7CFB;&#x7EDF;</my>&#x4E0E;<my>&#x5B9E;&#x65F6;&#x5206;&#x6790;&#x7CFB;&#x7EDF;</my>&#x4E24;&#x5927;&#x6A21;&#x5757;&#x3002;</p>
<ul>
<li><p>&#x5728;&#x79BB;&#x7EBF;&#x5206;&#x6790;&#x7CFB;&#x7EDF;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x5C06;&#x6A21;&#x62DF;&#x4E1A;&#x52A1;&#x6570;&#x636E;&#x5199;&#x5165; Hive &#x8868;&#x4E2D;&#xFF0C;&#x79BB;&#x7EBF;&#x5206;&#x6790;&#x7CFB;&#x7EDF;&#x4ECE; Hive &#x4E2D;&#x83B7;&#x53D6;&#x6570;&#x636E;&#xFF0C;&#x5E76;&#x6839;&#x636E;&#x5B9E;&#x9645;&#x9700;&#x6C42;&#xFF08;&#x9875;&#x9762;&#x5355;&#x8DF3;&#x8F6C;&#x5316;&#x7387;&#x5206;&#x6790;&#x3001;&#x5404;&#x533A;&#x57DF;&#x70ED;&#x95E8;&#x5546;&#x54C1;&#x7EDF;&#x8BA1;&#x7B49;&#xFF09;&#x5BF9;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x5904;&#x7406;&#xFF0C;&#x6700;&#x7EC8;&#x5C06;&#x5206;&#x6790;&#x5B8C;&#x6BD5;&#x7684;&#x7EDF;&#x8BA1;&#x6570;&#x636E;&#x5B58;&#x50A8;&#x5230; MySQL &#x7684;&#x5BF9;&#x5E94;&#x8868;&#x683C;&#x4E2D;&#x3002;</p>
</li>
<li><p>&#x5728;&#x5B9E;&#x65F6;&#x5206;&#x6790;&#x7CFB;&#x7EDF;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x5C06;&#x6A21;&#x62DF;&#x4E1A;&#x52A1;&#x6570;&#x636E;&#x5199;&#x5165; Kafka &#x96C6;&#x7FA4;&#x4E2D;&#xFF0C;&#x5B9E;&#x65F6;&#x5206;&#x6790;&#x7CFB;&#x7EDF;&#x4ECE; Kafka broker &#x4E2D;&#x83B7;&#x53D6;&#x6570;&#x636E;&#xFF0C;&#x901A;&#x8FC7; Spark Streaming &#x7684;&#x6D41;&#x5F0F;&#x5904;&#x7406;&#x5BF9;&#x5E7F;&#x544A;&#x70B9;&#x51FB;&#x6D41;&#x91CF;&#x8FDB;&#x884C;&#x5B9E;&#x65F6;&#x5206;&#x6790;&#xFF0C;&#x6700;&#x7EC8;&#x5C06;&#x7EDF;&#x8BA1;&#x7ED3;&#x679C;&#x5B58;&#x50A8;&#x5230; Redis &#x4E2D;</p>
</li>
</ul>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1551781693.png-atguiguText" alt=""></p>
<hr>
<h2 id="132-&#x6570;&#x636E;&#x6E90;&#x5206;&#x6790;">1.3.2 &#x6570;&#x636E;&#x6E90;&#x5206;&#x6790;</h2>
<h3 id="userinfo-&#x8868;"><code>user_info</code> &#x8868;</h3>
<p><code>user_info</code> &#x8868;, &#x662F;&#x4E00;&#x5F20;&#x666E;&#x901A;&#x7684;&#x7528;&#x6237;&#x57FA;&#x672C;&#x4FE1;&#x606F;&#x8868;</p>
<p>&#x8FD9;&#x5F20;&#x8868;&#x4E2D;&#x5B58;&#x653E;&#x4E86; &#x7F51;&#x7AD9;/APP &#x6240;&#x6709;&#x6CE8;&#x518C;&#x7528;&#x6237;&#x7684;&#x57FA;&#x672C;&#x4FE1;&#x606F;&#x3002; 
<code>user_info</code> &#x8868;&#x4E2D;&#x7684;&#x5B57;&#x6BB5;&#x89E3;&#x6790;&#x5982;&#x8868;&#x6240;&#x793A;:</p>
<table>
<thead>
<tr>
<th><strong>&#x5B57;&#x6BB5;&#x540D;&#x79F0;</strong></th>
<th><strong>&#x8BF4;&#x660E;</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>user_id</code></td>
<td>&#x7528;&#x6237; <code>ID</code>, &#x552F;&#x4E00;&#x6807;&#x8BC6;&#x67D0;&#x4E2A;&#x7528;&#x6237;</td>
</tr>
<tr>
<td><code>username</code></td>
<td>&#x7528;&#x6237;&#x767B;&#x5F55;&#x540D;</td>
</tr>
<tr>
<td><code>name</code></td>
<td>&#x7528;&#x6237;&#x6635;&#x79F0;&#x6216;&#x771F;&#x5B9E;&#x59D3;&#x540D;</td>
</tr>
<tr>
<td><code>age</code></td>
<td>&#x7528;&#x6237;&#x5E74;&#x9F84;</td>
</tr>
<tr>
<td><code>professional</code></td>
<td>&#x7528;&#x6237;&#x804C;&#x4E1A;</td>
</tr>
<tr>
<td><code>gender</code></td>
<td>&#x7528;&#x6237;&#x6027;&#x522B;</td>
</tr>
</tbody>
</table>
<h3 id="productinfo-&#x8868;"><code>product_info</code> &#x8868;</h3>
<p><code>product_info</code> &#x8868;&#xFF0C;&#x662F;&#x4E00;&#x5F20;&#x666E;&#x901A;&#x7684;&#x5546;&#x54C1;&#x57FA;&#x672C;&#x4FE1;&#x606F;&#x8868;</p>
<p>&#x8FD9;&#x5F20;&#x8868;&#x4E2D;&#x5B58;&#x653E;&#x4E86;&#x7F51;&#x7AD9;/APP&#x6240;&#x6709;&#x5546;&#x54C1;&#x7684;&#x57FA;&#x672C;&#x4FE1;&#x606F;&#x3002;</p>
<table>
<thead>
<tr>
<th><strong>&#x5B57;&#x6BB5;&#x540D;&#x79F0;</strong></th>
<th><strong>&#x8BF4;&#x660E;</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>proudct_id</code></td>
<td>&#x5546;&#x54C1; ID&#xFF0C;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#x67D0;&#x4E2A;&#x5546;&#x54C1;</td>
</tr>
<tr>
<td><code>product_name</code></td>
<td>&#x5546;&#x54C1;&#x540D;&#x79F0;</td>
</tr>
<tr>
<td><code>extend_info</code></td>
<td>&#x989D;&#x5916;&#x4FE1;&#x606F;&#xFF0C;&#x4F8B;&#x5982;&#x5546;&#x54C1;&#x4E3A;&#x81EA;&#x8425;&#x5546;&#x54C1;&#x8FD8;&#x662F;&#x7B2C;&#x4E09;&#x65B9;&#x5546;&#x54C1;</td>
</tr>
</tbody>
</table>
<h3 id="cityinfo-&#x8868;"><code>city_info</code> &#x8868;</h3>
<p>&#x57FA;&#x672C;&#x7684;&#x57CE;&#x5E02;&#x4FE1;&#x606F;&#x8868;</p>
<table>
<thead>
<tr>
<th><strong>&#x5B57;&#x6BB5;&#x540D;&#x79F0;</strong></th>
<th><strong>&#x8BF4;&#x660E;</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>city_id</code></td>
<td>&#x57CE;&#x5E02;ID</td>
</tr>
<tr>
<td><code>city_name</code></td>
<td>&#x57CE;&#x5E02;&#x540D;&#x79F0;</td>
</tr>
<tr>
<td><code>area</code></td>
<td>&#x5730;&#x533A;&#x540D;&#x79F0;&#xFF0C;&#x5982;&#xFF1A;&#x534E;&#x5317;&#xFF0C;&#x534E;&#x4E1C;&#xFF0C;&#x897F;&#x5317;</td>
</tr>
</tbody>
</table>
<h3 id="uservisitaction-&#x8868;"><code>user_visit_action</code> &#x8868;</h3>
<p><code>user_visit_action</code> &#x8868;&#xFF0C;&#x5B58;&#x653E;&#x7F51;&#x7AD9;&#x6216;&#x8005; APP &#x6BCF;&#x5929;&#x7684;&#x70B9;&#x51FB;&#x6D41;&#x6570;&#x636E;&#x3002;&#x901A;&#x4FD7;&#x5730;&#x8BB2;&#xFF0C;&#x5C31;&#x662F;&#x7528;&#x6237;&#x5BF9;&#x7F51;&#x7AD9;/APP &#x6BCF;&#x70B9;&#x51FB;&#x4E00;&#x4E0B;&#xFF0C;&#x5C31;&#x4F1A;&#x4EA7;&#x751F;&#x4E00;&#x6761;&#x5B58;&#x653E;&#x5728;&#x8FD9;&#x4E2A;&#x8868;&#x91CC;&#x9762;&#x7684;&#x6570;&#x636E;&#x3002; </p>
<p>&#x662F;&#x6211;&#x4EEC;&#x7684;&#x4E3B;&#x8868;</p>
<p><code>user_visit_action</code> &#x8868;&#x4E2D;&#x7684;&#x5B57;&#x6BB5;&#x89E3;&#x6790;&#x5982;&#x8868;&#x6240;&#x793A;&#xFF1A; </p>
<table>
<thead>
<tr>
<th><strong>&#x5B57;&#x6BB5;&#x540D;&#x79F0;</strong></th>
<th><strong>&#x8BF4;&#x660E;</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>date</code></td>
<td>&#x65E5;&#x671F;&#xFF0C;&#x4EE3;&#x8868;&#x8FD9;&#x4E2A;&#x7528;&#x6237;&#x70B9;&#x51FB;&#x884C;&#x4E3A;&#x662F;&#x5728;&#x54EA;&#x4E00;&#x5929;&#x53D1;&#x751F;&#x7684;</td>
</tr>
<tr>
<td><code>user_id</code></td>
<td>&#x7528;&#x6237; ID&#xFF0C;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#x67D0;&#x4E2A;&#x7528;&#x6237;</td>
</tr>
<tr>
<td><code>session_id</code></td>
<td>Session ID&#xFF0C;&#x552F;&#x4E00;&#x6807;&#x8BC6;&#x67D0;&#x4E2A;&#x7528;&#x6237;&#x7684;&#x4E00;&#x4E2A;&#x8BBF;&#x95EE; session</td>
</tr>
<tr>
<td><code>page_id</code></td>
<td>&#x9875;&#x9762; ID&#xFF0C;&#x70B9;&#x51FB;&#x4E86;&#x67D0;&#x4E9B;&#x5546;&#x54C1;/&#x54C1;&#x7C7B;&#xFF0C;&#x4E5F;&#x53EF;&#x80FD;&#x662F;&#x641C;&#x7D22;&#x4E86;&#x67D0;&#x4E2A;&#x5173;&#x952E;&#x8BCD;&#xFF0C;&#x7136;&#x540E;&#x8FDB;&#x5165;&#x4E86;&#x67D0;&#x4E2A;&#x9875;&#x9762;&#xFF0C;&#x9875;&#x9762;&#x7684; id</td>
</tr>
<tr>
<td><code>action_time</code></td>
<td>&#x52A8;&#x4F5C;&#x65F6;&#x95F4;&#xFF0C;&#x8FD9;&#x4E2A;&#x70B9;&#x51FB;&#x884C;&#x4E3A;&#x53D1;&#x751F;&#x7684;&#x65F6;&#x95F4;&#x70B9;</td>
</tr>
<tr>
<td><code>search_keyword</code></td>
<td>&#x641C;&#x7D22;&#x5173;&#x952E;&#x8BCD;&#xFF0C;&#x5982;&#x679C;&#x7528;&#x6237;&#x6267;&#x884C;&#x7684;&#x662F;&#x4E00;&#x4E2A;&#x641C;&#x7D22;&#x884C;&#x4E3A;&#xFF0C;&#x6BD4;&#x5982;&#x8BF4;&#x5728;&#x7F51;&#x7AD9;/app &#x4E2D;&#xFF0C;&#x641C;&#x7D22;&#x4E86;&#x67D0;&#x4E2A;&#x5173;&#x952E;&#x8BCD;&#xFF0C;&#x7136;&#x540E;&#x4F1A;&#x8DF3;&#x8F6C;&#x5230;&#x5546;&#x54C1;&#x5217;&#x8868;&#x9875;&#x9762;&#xFF1B;</td>
</tr>
<tr>
<td><code>click_category_id</code></td>
<td>&#x70B9;&#x51FB;&#x54C1;&#x7C7B; ID&#xFF0C;&#x53EF;&#x80FD;&#x662F;&#x5728;&#x7F51;&#x7AD9;&#x9996;&#x9875;&#xFF0C;&#x70B9;&#x51FB;&#x4E86;&#x67D0;&#x4E2A;&#x54C1;&#x7C7B;&#xFF08;&#x7F8E;&#x98DF;&#x3001;&#x7535;&#x5B50;&#x8BBE;&#x5907;&#x3001;&#x7535;&#x8111;&#xFF09;</td>
</tr>
<tr>
<td><code>click_product_id</code></td>
<td>&#x70B9;&#x51FB;&#x5546;&#x54C1; ID&#xFF0C;&#x53EF;&#x80FD;&#x662F;&#x5728;&#x7F51;&#x7AD9;&#x9996;&#x9875;&#xFF0C;&#x6216;&#x8005;&#x662F;&#x5728;&#x5546;&#x54C1;&#x5217;&#x8868;&#x9875;&#xFF0C;&#x70B9;&#x51FB;&#x4E86;&#x67D0;&#x4E2A;&#x5546;&#x54C1;&#xFF08;&#x6BD4;&#x5982;&#x5477;&#x54FA;&#x5477;&#x54FA;&#x706B;&#x9505; XX &#x8DEF;&#x5E97; 3 &#x4EBA;&#x5957;&#x9910;&#x3001;iphone   6s&#xFF09;</td>
</tr>
<tr>
<td><code>order_category_ids</code></td>
<td>&#x4E0B;&#x5355;&#x54C1;&#x7C7B; ID&#xFF0C;&#x4EE3;&#x8868;&#x4E86;&#x53EF;&#x80FD;&#x5C06;&#x67D0;&#x4E9B;&#x5546;&#x54C1;&#x52A0;&#x5165;&#x4E86;&#x8D2D;&#x7269;&#x8F66;&#xFF0C;&#x7136;&#x540E;&#x4E00;&#x6B21;&#x6027;&#x5BF9;&#x8D2D;&#x7269;&#x8F66;&#x4E2D;&#x7684;&#x5546;&#x54C1;&#x4E0B;&#x4E86;&#x4E00;&#x4E2A;&#x8BA2;&#x5355;&#xFF0C;&#x8FD9;&#x5C31;&#x4EE3;&#x8868;&#x4E86;&#x67D0;&#x6B21;&#x4E0B;&#x5355;&#x7684;&#x884C;&#x4E3A;&#x4E2D;&#xFF0C;&#x6709;&#x54EA;&#x4E9B;&#x5546;&#x54C1;&#x54C1;&#x7C7B;&#xFF0C;&#x53EF;&#x80FD;&#x6709; 6 &#x4E2A;&#x5546;&#x54C1;&#xFF0C;&#x4F46;&#x662F;&#x5C31;&#x5BF9;&#x5E94;&#x4E86; 2 &#x4E2A;&#x54C1;&#x7C7B;&#xFF0C;&#x6BD4;&#x5982;&#x6709; 3 &#x6839;&#x706B;&#x817F;&#x80A0;&#xFF08;&#x98DF;&#x54C1;&#x54C1;&#x7C7B;&#xFF09;&#xFF0C;3 &#x4E2A;&#x7535;&#x6C60;&#xFF08;&#x65E5;&#x7528;&#x54C1;&#x54C1;&#x7C7B;&#xFF09;</td>
</tr>
<tr>
<td><code>order_product_ids</code></td>
<td>&#x4E0B;&#x5355;&#x5546;&#x54C1; ID&#xFF0C;&#x67D0;&#x6B21;&#x4E0B;&#x5355;&#xFF0C;&#x5177;&#x4F53;&#x5BF9;&#x54EA;&#x4E9B;&#x5546;&#x54C1;&#x4E0B;&#x7684;&#x8BA2;&#x5355;</td>
</tr>
<tr>
<td><code>pay_category_ids</code></td>
<td>&#x4ED8;&#x6B3E;&#x54C1;&#x7C7B; ID&#xFF0C;&#x5BF9;&#x67D0;&#x4E2A;&#x8BA2;&#x5355;&#xFF0C;&#x6216;&#x8005;&#x67D0;&#x51E0;&#x4E2A;&#x8BA2;&#x5355;&#xFF0C;&#x8FDB;&#x884C;&#x4E86;&#x4E00;&#x6B21;&#x652F;&#x4ED8;&#x7684;&#x884C;&#x4E3A;&#xFF0C;&#x5BF9;&#x5E94;&#x4E86;&#x54EA;&#x4E9B;&#x54C1;&#x7C7B;</td>
</tr>
<tr>
<td><code>pay_product_ids</code></td>
<td>&#x4ED8;&#x6B3E;&#x5546;&#x54C1; ID&#xFF0C;&#x652F;&#x4ED8;&#x884C;&#x4E3A;&#x4E0B;&#xFF0C;&#x5BF9;&#x5E94;&#x7684;&#x54EA;&#x4E9B;&#x5177;&#x4F53;&#x7684;&#x5546;&#x54C1;</td>
</tr>
<tr>
<td><code>city_id</code></td>
<td>&#x57CE;&#x5E02; ID&#xFF0C;&#x4EE3;&#x8868;&#x8BE5;&#x7528;&#x6237;&#x884C;&#x4E3A;&#x53D1;&#x751F;&#x5728;&#x54EA;&#x4E2A;&#x57CE;&#x5E02;   ,&#x548C;&#x57CE;&#x5E02;&#x4FE1;&#x606F;&#x8868;&#x505A;&#x5173;&#x8054;</td>
</tr>
</tbody>
</table>
<h3 id="&#x5B9E;&#x65F6;&#x6570;&#x636E;">&#x5B9E;&#x65F6;&#x6570;&#x636E;</h3>
<p>&#x7A0B;&#x5E8F;&#x6BCF; 5 &#x79D2;&#x5411; Kafka &#x96C6;&#x7FA4;&#x5199;&#x5165;&#x6570;&#x636E;&#xFF0C;&#x683C;&#x5F0F;&#x5982;&#x4E0B;&#xFF1A; 
&#x683C;&#x5F0F;: <code>timestamp  province  city  userid  adid</code></p>
<table>
<thead>
<tr>
<th><strong>&#x5B57;&#x6BB5;&#x540D;&#x79F0;</strong></th>
<th><strong>&#x53D6;&#x503C;&#x8303;&#x56F4;</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td><code>timestamp</code></td>
<td>&#x5F53;&#x524D;&#x65F6;&#x95F4;&#x6BEB;&#x79D2;  &#x7C7B;&#x578B;&#xFF1A;&#x6570;&#x5B57;</td>
</tr>
<tr>
<td><code>userId</code></td>
<td>&#x7528;&#x6237;id&#xFF0C;&#x7C7B;&#x578B;&#xFF1A;&#x6570;&#x5B57;</td>
</tr>
<tr>
<td><code>area</code></td>
<td>&#x4E1C;&#x5317;&#x3001;&#x534E;&#x5317;&#x3001;&#x897F;&#x5357;   &#x7C7B;&#x578B;&#xFF1A;&#x6587;&#x672C;</td>
</tr>
<tr>
<td><code>city</code></td>
<td>&#x57CE;&#x5E02;&#x4E2D;&#x6587;&#x540D;&#xFF1A; &#x5317;&#x4EAC;&#x3001;&#x4E0A;&#x6D77;&#x3001;&#x9752;&#x5C9B;&#x7B49;    &#x7C7B;&#x578B;&#xFF1A;&#x6587;&#x672C;</td>
</tr>
<tr>
<td><code>adid</code></td>
<td>&#x70B9;&#x51FB;&#x7684;&#x5E7F;&#x544A;&#x7F16;&#x53F7;&#xFF0C;&#x6570;&#x5B57;</td>
</tr>
</tbody>
</table>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x5C1A;&#x7845;&#x8C37;&#x5927;&#x6570;&#x636E; 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification"><br>&#x8BE5;&#x6587;&#x4EF6;&#x6700;&#x540E;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2019-03-19 08:35:41
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="12-xiang-mu-zheng-ti-jia-gou.html" class="navigation navigation-prev " aria-label="Previous page: 1.2 项目整体架构">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="14-xiang-mu-xu-qiu.html" class="navigation navigation-next " aria-label="Next page: 1.4 项目需求">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1.3 数据源分析","level":"1.1.3","depth":2,"next":{"title":"1.4 项目需求","level":"1.1.4","depth":2,"path":"14-xiang-mu-xu-qiu.md","ref":"14-xiang-mu-xu-qiu.md","articles":[]},"previous":{"title":"1.2 项目整体架构","level":"1.1.2","depth":2,"path":"12-xiang-mu-zheng-ti-jia-gou.md","ref":"12-xiang-mu-zheng-ti-jia-gou.md","articles":[]},"dir":"ltr"},"config":{"plugins":["splitter","expandable-chapters-small","page-toc-button","-highlight","prism","prism-themes","tbfed-pagefooter","sitemap","change_girls","livereload"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 尚硅谷大数据 2019","modify_label":"<br>该文件最后修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-solarizedlight.css"]},"disqus":{"shortName":"zhenchao125"},"livereload":{},"splitter":{},"change_girls":{"time":30,"urls":["http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/62171757.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/83394736.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/15906185.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/15906185.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/3394270.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/65028582.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/20359261.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/37472401.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/3355397.jpg-atguiguImg","http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/imgs/18-3-4/11075549.jpg-atguiguImg"]},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"sitemap":{"hostname":"http://bigdataatguigu.applinzi.com/"},"page-toc-button":{"maxTocDepth":3,"minTocSize":2},"prism-themes":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":" 李振超","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"大数据 bigdata_mallanalyze_atguigu 课堂笔记","language":"zh-hans","links":{"sidebar":{"联系我们":"http://www.atguigu.com/"}},"gitbook":"*","description":"课堂笔记,学生提前预习"},"file":{"path":"13-ye-wu-xu-qiu.md","mtime":"2019-03-19T00:35:41.592Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-07-19T00:04:29.500Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-change_girls/girls.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

